package com.xbongbong.pro.smartsettings.pojo.dto;

import com.xbongbong.paas.toolbox.wrap.BaseDTO;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotNull;

/**
 * @description: 启用/关闭智能助手
 * @Author: hongxiao
 * @date: 2019-04-23 21:09
 * @since v1.0
 */
@Getter
@Setter
@ToString
public class SmartSettingsEnableDTO extends BaseDTO {
    /**
     * 智能助手id
     */
    @NotNull(message = "{dto.msg.smartSettingsEnable.id.NotNull}")
    private Long id;
    /**
     * 是否启用
     */
    @NotNull(message = "{dto.msg.smartSettingsEnable.enable.NotNull}")
    @Range(max = 1, message = "{dto.msg.smartSettingsEnable.enable.Range}")
    private Integer enable;
}
